//index.js
//获取应用实例
var app = getApp();
import { Dizhi } from '../dizhi/dizhi_model.js';
var dizhi = new Dizhi();

var wxaSortPicker = require('../../utils/wxaSortPicker/wxaSortPicker.js');

Page({
  data: {
    showIcon: true //显示返回键以及首页

  },
  onLoad: function () {
    var that = this;
    dizhi.getShengHuiRow(res => {
      //查询省列表
      //console.log(res)
      wxaSortPicker.init(res, that);
    });
  },
  onShow: function () {},
  wxaSortPickerItemTap: function (e) {
    var c_ity = e.target.dataset.text;
    var t_ypeid = e.target.dataset.value;
    tt.setStorageSync('t_ypeid', t_ypeid);
    tt.setStorageSync('c_ity', c_ity);
    tt.setStorageSync('_cateId', 0);
    tt.reLaunch({
      url: '../jqList/jqList' //点击跳转到列表页

    });
  }
});